package com.example.memegenerator.repository;

import com.example.memegenerator.model.Meme;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface MemeRepository extends JpaRepository<Meme, Long> {
    Page<Meme> findAllByOrderByShareCountDesc(Pageable pageable);
}